<!DOCTYPE html>
<html>
<head>
    <title>图书系统后台界面</title>
    <link rel="shortcut icon" href="icon/favicon.ico" type="image/x-icon">
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background:#ffffff;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.6);
            z-index: -1;
        }
        
        .header {
            margin-top: 0px;
            background-color: rgba(255, 255, 255, 0.8);
            color: #333;
            padding: 20px;
            text-align: left;
            font-size: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #ddd;
        }
        
        .admin-info {
            font-size: 16px;
            margin-right: 10px;
        }
        
        .logout-link {
            color: #4CAF50;
            text-decoration: none;
            margin-left: 5px;
            transition: color 0.3s;
        }
        
        .logout-link:hover {
            color: #000;
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="header">
        图书系统后台管理
        <div class="admin-info">
            <?php
            session_start();
            $username = (empty($_SESSION["name"])) ? '' : $_SESSION["name"];
            echo "当前管理员：".$username." <a href='login.php?tj=out' class='logout-link'>退出</a>";
            ?>
        </div>
    </div>
</body>
</html>    